<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/HomeTemplate.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                >
    <ui:define name="body">
        <div class="main-container" >
            <p:tabMenu id="tab1" model="#{dynamicMenu.getSimpleMenuModel(3)}" style="width: 90%"  />
            <h:form id="form" style="width: 1200px" > 
                <p:panel header="Warranty Information" style="width: 1200px; border-bottom: none">
                    <h:panelGrid columns="6" columnClasses="column" cellpadding="10">  
                        <h:outputText value="Model Year:" />
                        <h:outputText value="#{claimBean.catalogBean.catalog.modelYear}"  />
                            
                        <h:outputText value="Model Name: " />
                        <h:outputText value="#{claimBean.catalogBean.catalog.modelName}"  />
                        <h:outputText value="Claim Item:" />
                        <h:outputText value="#{claimBean.claimItem}"  />
                        <h:outputText value="Frame No:" />
                        <h:outputText value="#{claimBean.temp.frameNo}" /> 
                        <h:outputText value="Frame Size: " />
                        <h:outputText value="#{claimBean.temp.frameSize}" /> 

                        <h:outputText value="Claim Description: " />
                        <h:outputText value="#{claimBean.temp.claimDescription}" /> 
                         
                        <h:outputText value="Height (cm):" />
                        <h:outputText value="#{claimBean.temp.height}" /> 
                        <h:outputText value="Weight (kg): " />
                        <h:outputText value="#{claimBean.temp.weight}" /> 
                        <h:outputText value="Situation Description: " />
                        <h:outputText value="#{claimBean.temp.situationDesc}"  style="height: 100px; width: 500px"/> 
                    </h:panelGrid>
                </p:panel>
                <p:panel header="Administration Information" style="width: 1200px; border-top: none">
                    <h:panelGrid columns="4" columnClasses="column" cellpadding="10">  
                        <h:outputText value="Status:" />
                        <p:selectOneMenu value=" " id="claimStatus"  >
                            <f:selectItem itemLabel="Select Claim Item" itemValue="" />
                            <f:selectItems value="#{claimStatusBean.claimStatuses}" var="claimStatus"
                                           itemLabel="#{claimStatus.description}" itemValue="#{claimStatus.idClaimStatus}"/>
                        </p:selectOneMenu> 
                        <h:outputText value="Closed Date: " />
                        <p:inputText value="#{claimBean.temp.dateClosed}" /> 
                        <h:outputText value="Confirm Date: " />
                        <p:inputText value="#{claimBean.temp.dateClosed}" /> 
                        <h:outputText value="Situation Description: " />
                        <p:inputText value="#{claimBean.temp.notes}"  style="height: 100px; width: 500px"/> 
                    </h:panelGrid>
                </p:panel>
                <h:panelGrid columns="2" cellpadding="5" style="border-bottom-width: 30px">  
                    <p:commandButton  value="Clear" icon="pdf" > </p:commandButton> 
                    <p:commandButton  value="Submit" icon="excel" action="#{claimBean.createClaim()}"  ajax="false"> </p:commandButton>
                </h:panelGrid>
            </h:form>         
        </div>    
    </ui:define>
</ui:composition>



